Title Banner


Technical Q&A's


QTMTB 23 - Setting a Movie's Clipping Region (1-May-95)


Q Our application uses the movie poster as a still frame in a cell (similar to using a PICT). If a user sizes the cell width so that it's narrower than the poster, QuickTime posters are drawn full width, writing over whatever is in the way, even though we clip the drawing to the cell size. Since Pictures clip through DrawPicture, why doesn't ShowMoviePoster stay within the clipping region?

A ShowMoviePoster and the movie- and preview-showing calls use the movie clipping characteristics rather than the destination port's clipping region. You must set the movie's clipping region to obtain the results you want. You can accomplish the same thing by getting the picture for the poster by calling GetMoviePosterPict and using DrawPicture to display the poster. Because this is just a picture, the clipping region of the port is honored, so you don't need different code for movies and pictures.

Technical Support
Technical Q&As
Previous Question | Contents | Next Question

Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help